package com.xinruke.hostels.dailymanage.interfaces.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

/**
 * @author GuoZheng
 * @ClassName CommentSubmitInfoDto
 * @date：2019/6/21
 * @version: V1.0.0
 * @description：提交评论DTO
 */
@Data
@ApiModel("提交评论DTO")
public class CommentSubmitInfoDto {


    /**
     * 酒店id
     */
    @ApiModelProperty(value = "酒店id",required = true)
    @NotNull(message = "酒店id不能为空")
    private Integer jiudianId;

    /**
     * 位置评分:1~5
     */
    @ApiModelProperty(value = "位置评分:1~5",required = true)
    @NotNull(message = "位置评分不能为空")
    private Byte weizhipingfen;

    /**
     * 卫生评分:1~5
     */
    @ApiModelProperty(value = "卫生评分:1~5",required = true)
    @NotNull(message = "卫生评分不能为空")
    private Byte weishengpingfen;

    /**
     * 服务评分:1~5
     */
    @ApiModelProperty(value = "服务评分:1~5",required = true)
    @NotNull(message = "服务评分不能为空")
    private Byte fuwupingfen;

    /**
     * 设施评分:1~5
     */
    @ApiModelProperty(value = "设施评分:1~5",required = true)
    @NotNull(message = "设施评分不能为空")
    private Byte sheshipingfen;

    /**
     * 房间评价
     */
    @ApiModelProperty(value = "房间评价",required = true)
    //@NotBlank(message = "房间评价不能为空")
    //@Size(min = 10,max = 1024, message = "房间评价至少要有10个字！最多2048个字")
    private String fangjianpingjia;

    /**
     * 服务评价
     */
    @ApiModelProperty(value = "服务评价",required = true)
    @NotBlank(message = "服务评价不能为空")
    @Size(min = 10, max = 1024,message = "服务评价至少要有10个字！")
    private String fuwupingjia;

    /**
     * 评论图片，多个用,分隔
     */
    @ApiModelProperty("评论图片，多个用,分隔")
    private String pingluntupian;

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id（前端不必传递）")
    private Integer huiyuanId;
    /**
     * 对应订单号
     */
    @ApiModelProperty(value = "对应订单号",required = true)
    @NotNull(message = "对应订单号不能为空")
    private String duiyingdingdanhao;

    /**
     * 1.实名；
     2.匿名
     */
    @ApiModelProperty(value = "1.实名；2.匿名",required = true)
    @NotNull(message = "实名还是匿名不能为空")
    private Byte leixing;

    /**
     * 入住时间
     */
    @ApiModelProperty(value = "入住时间",required = true)
    //@NotNull(message = "入住时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date ruzhushijian;



}
